import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import java.awt.TextArea;
import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.JTextPane;
import javax.swing.JEditorPane;

public class Credits extends JDialog {

	private static final long serialVersionUID = 1L;

	private JPanel jContentPane = null;

	private JEditorPane jEditorPane = null;

	/**
	 * @param owner
	 */
	public Credits() {
		super();
		
		ImageIcon icone = new ImageIcon("Photos\\lince2.jpg"); // adiciona
		// icone na
		// janela
		setIconImage(icone.getImage());
		
		
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(312, 216);
		this.setContentPane(getJContentPane());
		this.setTitle("Lince -  Credits ");
		this.setLocationRelativeTo(null);
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getJEditorPane(), BorderLayout.CENTER);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jEditorPane	
	 * 	
	 * @return javax.swing.JEditorPane	
	 */
	private JEditorPane getJEditorPane() {
		if (jEditorPane == null) {
			jEditorPane = new JEditorPane();
			jEditorPane.setText("Lince - WebSearch v1.0 \n By: Vasco Nicolau & Nuno Gaspar");
			jEditorPane.setEditable(false);
		}
		return jEditorPane;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
